<?php
/**
 * @version     1.0.0
 * @package     com_tours
 * @copyright   Copyright (C) 2013. All rights reserved.
 * @license     GNU General Public License version 2 or later; see LICENSE.txt
 * @author      kent <kent@viseed.com> - http://viseed.com
 */
// no direct access
defined('_JEXEC') or die;
$tour_id = JRequest::getVar('id','','int');
$tour_info = CathomeInfo($tour_id);
$tour_list = get_article_from_cat($tour_id);
?>
<script type="text/javascript">
    jQuery('#slidecaption').hide();
</script>
<div class="blue_line2">
	<div class="path">
            <a href="<?php echo JRoute::_('index.php?option=com_tours&view=tours&Itemid=137');?>">Tours</a> &gt; <?php echo $tour_info->title;?>
</div>
</div>

<div class="inner_content">
	<div class="content">
    <div class="inner_title"><?php echo $tour_info->title;?></div>
    <div class="tour_container">
    	<?php foreach($tour_list as $obj){?>
    	<div class="tour_box">
    	<div class="tour_photo"><a href="<?php echo JRoute::_('index.php?option=com_tours&view=tourdetails&id='.$obj->id.'&Itemid=136');?>"><img src="<?php echo get_first_image($obj->introtext);?>" width="293" height="182" border="0" /></a></div>
        <div class="tour_name"><a href="<?php echo JRoute::_('index.php?option=com_tours&view=tourdetails&id='.$obj->id.'&Itemid=136');?>"><?php echo $obj->title;?></a></div>
    	</div>
        <?php }?>       
        <br class="clear" />
    </div>
	</div>
</div>